<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<?php  $this->Form->cuenta($this->Access->getMy('id'));?>	
	<div class="desplegable">
		<?php  $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="contratos index">
	<fieldset>
		<legend>Contratos</legend>
	<table class="tabla_formulario">
	<?php echo $this->Html->link($this->Html->image('nuevo_contrato.png', array('alt'=> __('Nuevo Contrato', true), 'border' => '0')),
												'../contratos/add/',array('escape' => false));?>
	<tr>
			<th><?php echo $this->Paginator->sort('nombre');?></th>			
			<th class="actions"><?php __('');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($contratos as $contrato):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $contrato['Contrato']['nombre']; ?>&nbsp;</td>		
		<td>			
			<?php 
				echo $this->Html->link($this->Html->image('edit.png', array('alt'=> __('Editar', true), 'border' => '0')),
									'../contratos/edit/'.$contrato['Contrato']['id'],array('escape' => false));
			?>			
		</td>
	</tr>
<?php endforeach; ?>
</table>
 </fieldset>
	
	<p class="pagina">
		<?php echo $this->Paginator->counter(array('format' => __('P&aacute;gina %page% de %pages%, mostrando %current% regristros de  un total de %count%,
		 														   empieza con el registro %start%, termina en %end%', true)));?>
	</p>

 <div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
 </div>
</div>	